package com.laotou99.wmsjjj.wmsjjj.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

	@RequestMapping("/")
	public String index(ModelMap map){ 
//		return "index";
		return "redirect:/html/index.html";
	}
	@RequestMapping("/index")
	public String index1(ModelMap map){ 
		return "index";
	}
	 
	@RequestMapping("/admin")
	public String admin(ModelMap map){ 
		return "admin";
	}
	
}


 
// /**
//     * 实现转发
//     */
//    @RequestMapping("/hello11.action")
//    public String hello11(HttpServletRequest request){
//        request.setAttribute("name", "cjj");
//        return "forward:hello.action";
//    }
//    
//    /**
//     * 实现重定向
//     */
//    @RequestMapping("/hello12.action")
//    public String hello12(HttpServletRequest request){
//        request.setAttribute("name", "cjj");
//        return "redirect:/hello.action";
//    }
